home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / GPC2952B.ZIP / doc / gpc / docdemos / rounddemo.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-02-09  |  173 b   |  10 lines

  1. program RoundDemo;
  2. var
  3.   Foo: Real;
  4. begin
  5.   foo := 9.876543;
  6.   WriteLn (Round (Foo));  { Prints 10 }
  7.   foo := 3.456789;
  8.   WriteLn (Round (Foo))   { Prints 3 }
  9. end.
  10.